<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="template-head.jsp" />
<jsp:include page="template-body.jsp" />
<div class="container">
	<jsp:include page="errors.jsp"/>
<div id="continuousquestionpage">
	<c:choose>
		<c:when test="${network == true}">
		<h1>Network Weighted Continuous List Type Question</h1>
		</c:when>
		<c:otherwise>
		<h1>Continuous Type Question</h1>
		</c:otherwise>
	</c:choose>
	<div id="continuousquestionbody">
		<div class="hero-unit">
		<form id="continuousquestionform" method="post" action="continuousq.do">
			<div id="continuousquestiontext">
				<textarea name="question" rows="10" cols="100">Type your question here.</textarea>
			</div>
			<div id="continuousquestiondynetmlattr">
			<c:choose>
				<c:when test="${network == true}">
				<p>Enter the dynetml network identifier for this question</p>
				</c:when>
				<c:otherwise>
				<p>Enter the dynetml attribute identifier for this question</p>
				</c:otherwise>
			</c:choose>
			<input type="text" name="dynetmlAttr" value="${continuousqform.dynetmlAttr}">
			</div>
			
			<c:if test="${network == true}"> <%-- Network Weighted Continuous List Question --%>
			<div id="continuousquestionclassname">
				<p>Select the name of entity class for this question.</p>
				<select name="className" class="type">
					<c:forEach var="ec" items="${entityclass}">
					<option>${ec.name}</option>
					</c:forEach>
				</select>
				
				<p>If you have not imported an entity class yet, please press the button below to import one for this survey.</p>
				<input type="submit" name="button" class="btn btn-success" value="Import Entity Data"><br/><br/>
			</div>
			</c:if>
			
			<div id="continuousquestionminmax">
				<table>
					<tr>
						<td>Enter minimum value:<input type="text" name="min" value="${continuousqform.min}"></td>
					</tr>
					<tr>
						<td>Enter maximum value:<input type="text" name="max" value="${continuousqform.max}"></td>
					</tr>
					<tr>
						<td>Enter step value:<input type="text" name="step" value="${continuousqform.step}"></td>
					</tr>
				</table>
			</div>
			<div id="continuousquestionbutton">
				<table>
					<tr>
						<td><input type="submit" name="button" class="btn btn-success"  value="Submit"></td>
					</tr>
					<tr>
						<td><input type="submit" name="button" class="btn btn-inverse"  value="Back"></td>
					</tr>
				</table>
			</div>
		</form>
	</div>
	</div>
</div>
</div>
<!--Create another space for contents' extension  -->
	<div class="container2">
	
	
 	</div>
<jsp:include page="template-foot.jsp" /> 